MailPoet\Form\DisplayFormInWPContent C

Total Complexity 105
Dependencies 11
Dependents 4
Total lines 394
Lines of code 244
Logical lines of code 173
Comment lines 51
Methods 22
Properties 11

Methods 22

Method Rating Maintainability Complexity Lines of code
shouldDisplayFormType()
C
43 27 42
getContentBellow()
A
45 7 41
displayFormInProductListPage()
S
63 8 9
shouldDisplay()
S
61 7 11
shouldDisplayFormOnPost()
S
59 6 13
shouldDisplayFormOnTagArchive()
S
66 5 7
shouldDisplayFormOnCategoryArchive()
S
66 5 7
maybeRenderFormsInFooter()
S
65 5 9
getContentWithFormMarkup()
S
63 4 11
filterOneFormInEachDisplayType()
S
63 4 11
shouldDisplayFormOnCategory()
S
69 4 6
shouldDisplayFormOnTag()
S
69 4 6
shouldDisplayFormForWPUser()
S
65 4 9
getFormMarkup()
S
62 3 11
shouldDisplayFormOnHome()
S
63 3 10
getForms()
S
62 2 11
shouldDisplayFormOnFrontPage()
S
70 2 6
__construct()
S
64 1 10
saveNoForms()
S
80 1 3
wooProductListDisplay()
S
76 1 4
contentDisplay()
S
76 1 4
wasDisplayTypeAlreadyRendered()
S
79 1 3